-- GENERATED SPELL FOR [Kuz] --


function spell0_3436(pUnit, Event) --@Fire Blast,n/a--
pUnit:FullCastSpellOnTarget(20795,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3436', 525, 1)
end

function spell1_3436(pUnit, Event) --@Frost Nova,Self--
pUnit:FullCastSpellOnTarget(11831,pUnit)
pUnit:RegisterEvent('Sorts_3436', 8304, 1)
end

function spell2_3436(pUnit, Event) --@Frostbolt,n/a--
pUnit:FullCastSpellOnTarget(20792,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_3436', 7000, 1)
end

function Sorts_3436(pUnit, Event)
local choix_sorts_3436 = math.random(0, 2)
if choix_sorts_3436 == 0 then
pUnit:RegisterEvent('spell0_3436', 1, 1)
end
if choix_sorts_3436 == 1 then
pUnit:RegisterEvent('spell1_3436', 1, 1)
end
if choix_sorts_3436 == 2 then
pUnit:RegisterEvent('spell2_3436', 1, 1)
end
end

function mob3436_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3436', math.random(1500, 3000), 1)
end

function mob3436_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3436_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3436_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3436, 1, 'mob3436_Action')
RegisterUnitEvent(3436, 2, 'mob3436_Leave')
RegisterUnitEvent(3436, 3, 'mob3436_Kill')
RegisterUnitEvent(3436, 4, 'mob3436_Die')
